package com.website.system.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.website.system.model.Drug;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DrugMapper extends BaseMapper<Drug> {
    //查询所有
    List<Drug> findAll(String name);
    //List<Drug> findAll(Map<String, Object> map);
    //根据Id删除
    //int delById(Integer id);
    //添加
    int addDrug(Drug drug);
    //修改
    int updataDrug(Drug drug);
    //查看详情
    Drug getById(Integer id);
    //导出
    List<Drug> exportDrug();
    //批量添加
    int addDrug(List<Drug> drug);

}
